<%@ page contentType="text/html;charset=ISO8859_1" language="java" %>

<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tld/struts-nested.tld" prefix="nested" %>

<html:html locale="true">
<script>
var vData = new Array(0);

<logic:iterate id="element" name="result">
	var obj = new Object();
	obj.key = '<bean:write name="element" property="deptid" />';
	obj.text = '<bean:write name="element" property="sdeptname" />';
	obj.desc = '<bean:write name="element" property="deptname" />';
	vData[vData.length] = obj;
</logic:iterate> 

parent.setData(vData);
</script>
</html:html>
